# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
# Contributor: Allan McRae <mcrae_allan@hotmail.com>
# Contributor: Angelo Theodorou <encelo@users.sourceforge.net>

pkgname=barrage
pkgver=1.0.6
pkgrel=1
pkgdesc="A violent point-and-click shooting game with nice effects"
arch=('loong64' 'x86_64')
url="http://lgames.sourceforge.net/index.php?project=Barrage"
license=('GPL')
depends=('hicolor-icon-theme' 'sdl_mixer')
changelog=$pkgname.changelog
source=(https://downloads.sourceforge.net/lgames/$pkgname-$pkgver.tar.gz)
sha256sums=('9c5924cd3e408dc3df5ec771c2f12c938f915fd3f2d6656a003beea311381dae')

build() {
  cd "${srcdir}"/$pkgname-$pkgver

  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}"/$pkgname-$pkgver

  make DESTDIR="${pkgdir}" install
}
